package trafficcontrol

// A StartTrafficControlConfig is an gray config.
type StartTrafficControlConfig struct {
	NameSpace string
	IP        string
	Port      int32
	UserName  string
	PassWord  string
	Group     string `json:",default=trafficcontrol"`
}

type GrayConfig struct {
	GraySwitch      int      `json:"graySwitch,optional"`
	GrayRandomRatio int      `json:"grayRandomRatio,optional"`
	GrayGtoken      []string `json:"grayGtoken,optional"`
	GrayOpenudid    []string `json:"grayOpenudid,optional"`
	GrayWebuuid     []string `json:"grayWebuuid,optional"`
	GrayDeviceSn    []string `json:"grayDeviceSn,optional"`
	GrayService     string   `json:"grayService,optional"`
}

type GrayConfigsInfo struct {
	Disabled        bool         `json:"disabled,optional"`
	GrayConfigsInfo []GrayConfig `json:"grayConfigsInfo,optional"`
}
